moved tree functions to separate project_dataset_tree.js file