code: function makeTree(treeData, root, filename){
    var treeNode = document.getElementById('tree');
    var treeHandle = document.getElementById('sidebar-toggle');
    treeHandle.addEventListener('click', toggleTree, false);
  
    // Build the html and add it to the container.
    treeNode.innerHTML = nodeHtml('', treeData, '', root);
  
    // Root folder (whole tree) should always be open
    treeNode.childNodes[0].className += ' open';
  
    // Attach click event handler
    treeNode.addEventListener('click', nodeClicked, false);
  
    if(sidebarVisible) document.body.className += ' sidebar';
  
    // Restore scroll position from localStorage if set. And attach scroll handler
    if(window.localStorage && window.localStorage.docker_treeScroll) treeNode.scrollTop = window.localStorage.docker_treeScroll;
    treeNode.onscroll = treeScrolled;
  
    // Only set a class to allow CSS transitions after the tree state has been painted
    setTimeout(function(){ document.body.className += ' slidey'; }, 100);
  }
docs: ## makeTree
  
  Consructs the folder tree view
  
  @param {object} treeData Folder structure as in [queueFile](../src/docker.js.html#docker.prototype.queuefile)
  @param {string} root Path from current file to root (ie `'../../'` etc.)
  @param {string} filename The current file name