Update tree.js