Fix tree.js