rename js files
use templates to render tree nodes
update tree data format
simplify tree templates
render tree only after templates are loaded