move generate jstree data to utils