Make jsTree browserify compatible

I didn't commited any build files (although the build was successful) because I can't figure out what change is really related to my change in the source.
Thanks :) and thanks for contributing!