change tree.js to index.js