jstree2mongo with recursion