Refactor to use jstree.  Loading metadata works