update tree.js hopefully fixes #4