Jstree template refactor