Update DynamicTree.js