var pages = {
  init: function() {
    alert('negers');
    tree.init('#pages-tree');
  },
}

$(function(){ pages.init(); });

var pages = {
  init: function() {
    tree.init('#pages-tree');
  },
}

$(function(){ pages.init(); });

remove negro alert from js