move tree.js into js folder