edit Tree.js