adjusted build process to support browserify.