build_tree.js