Update tree.js
Merge pull request #149 from robernet/patch-9

Fix tree.js