We may be able to remove the browser.js file and change our build steps to look more like this:
"watch:js": "watchify -s src/index.js -o dist/openshare.js -dv",
"build:js": "browserify -s src/index.js -g uglifyify | uglifyjs -cm > dist/openshare.js",
notice the -s flag and change in entry point from src/browser.js to src/index.js
from the browserify docs:
--standalone -s Generate a UMD bundle for the supplied export name.
This bundle works with other module systems and sets the name
given as a window global if no module system is found.