clean up tree.js and cuenta.js (tree client template)