making browserify compatible