Example of ajax-driven jstree wrapped as angularjs directive