code: function wireUpTabs(){
    var tabEl = document.getElementById('sidebar_switch');
    var children = tabEl.childNodes;
  
    // Each tab has a class corresponding of the id of its tab pane
    for(var i = 0, l = children.length; i < l;  i += 1){
      // Ignore text nodes
      if(children[i].nodeType !== 1) continue;
      children[i].addEventListener('click', function(c){
        return function(){ switchTab(c); };
      }(children[i].className));
    }
  }
docs: ## wireUpTabs
  
  Wires up events on the sidebar tabe