convert to browserify / commonjs format