refactored tree_load.js to data_load.js