define(['text!../views/echoContent.html', 'text!../views/errorContent.html', 'utils', 'jquery'], function(html, errorHtml, utils, $) {
    'use strict';

    // ===================================
    // ECHO CONTENT
    // ===================================

    var _echoContent = function(posts) {
        var container = utils._getId('container');

        if (!utils._isUnd(posts) && !utils._isUnd(html)) {
            container.innerHTML = html;
            var miniPanel = utils._getId('echoMiniPanel');

            if (!utils._isUnd(miniPanel)) {
                var title = utils._create('h5'),
                    link = utils._create('a'),
                    postsContainer = utils._create('div'),
                    pContainer = utils._getId('echoContentPanel');

                title.innerHTML = posts.title;
                utils._setAttr(link, 'href', posts.link + '.html');
                link.innerHTML = posts.link;
                postsContainer.className = 'postMenu';

                if (!utils._isUnd(posts.entries) && posts.entries.length > 0) {
                    var i = 0,
                        entries = posts.entries.length;
                    for (i; i < entries; i++) {
                        var subDiv = utils._create('div'),
                            subLink = utils._create('a');
                        utils._setAttr(subLink, 'href', '#');
                        utils._setAttr(subLink, 'data', posts.entries[i].link);
                        subLink.className = 'subMenuLink';
                        subLink.innerHTML = posts.entries[i].title;

                        subDiv.appendChild(subLink);
                        postsContainer.appendChild(subDiv);
                    }
                }
                utils._appendArr(miniPanel, [title, link, postsContainer]);
                container.appendChild(miniPanel);

                window.setTimeout(function() {
                    if (miniPanel.childNodes.length > 0) {
                        var j = 0,
                            minLength = miniPanel.childNodes.length,
                            firstNode = null;
                        for (j; j < minLength; j++) {
                            if (typeof miniPanel.childNodes[j] === 'object' && miniPanel.childNodes[j].tagName === 'DIV') {
                                firstNode = miniPanel.childNodes[j].childNodes[0].childNodes[0].getAttribute('data');
                                break;
                            }
                        }
                        utils._appendContent(pContainer, firstNode);
                    }
                }, 100);
            }

            if (!utils._isUnd(utils._getClass('subMenuLink'))) {
                $('.subMenuLink').click(function(ev) {
                    utils._emptyContentContainer();

                    var panel = miniPanel.childNodes[3].childNodes,
                        link = ev.currentTarget.attributes.data.value,
                        i = 0,
                        panelLength = panel.length;

                    for (i; i < panelLength; i++) {
                        var links = panel[i].childNodes[0];
                        if ($(links).hasClass('now')) {
                            $(links).removeClass('now');
                        }
                    }

                    $(this).addClass('selected');
                    $(this).addClass('now');
                    utils._appendContent(pContainer, link);
                });
            }
        }
    };

    return {
        echoContent: _echoContent
    };
});

@@ -344,16 +344,265 @@
 tainer')
+,%0A            miniPanel = null,%0A            title = null,%0A            link = null,%0A            postsContainer = null,%0A            pContainer = null,%0A            i = 0,%0A            entries = null,%0A            subDiv = null,%0A            subLink = null
 ;%0A%0A     
@@ -707,20 +707,16 @@
         
-var 
 miniPane
@@ -811,20 +811,16 @@
         
-var 
 title = 
@@ -838,22 +838,18 @@
 te('h5')
-,%0A    
+;%0A
         
@@ -881,20 +881,18 @@
 ate('a')
-,%0A  
+;%0A
         
@@ -891,34 +891,32 @@
                 
-  
 postsContainer =
@@ -928,38 +928,34 @@
 s._create('div')
-,%0A    
+;%0A
                 
@@ -1302,43 +1302,8 @@
 ) %7B%0A
-                    var i = 0,%0A    
     
@@ -1422,20 +1422,16 @@
         
-var 
 subDiv =
@@ -1451,22 +1451,18 @@
 e('div')
-,%0A    
+;%0A
         
@@ -2938,14 +2938,20 @@
 k').
+on('
 click
-(
+', 
 func
@@ -3102,25 +3102,32 @@
             
-l
+currentL
 ink = ev.cur
@@ -3241,16 +3241,54 @@
 l.length
+,%0A                        links = null
 ;%0A%0A     
@@ -3358,20 +3358,16 @@
         
-var 
 links = 
@@ -3700,17 +3700,24 @@
 tainer, 
-l
+currentL
 ink);%0A  

Refactor for improve some code