LPS-48437 finally remove tree_js.jsp and all the duplicated js code

cc @ealonso