Make jsTree browserify compatible