new index file and add tree.js
new index file and add tree.js