some tweaks for browserify