update tree.js