Made browserify compatible