Fixed JS using new data in the tree.