modify update (tree data) in tree.js