Update trees.js