Adding initial js for tree view