Refactor/browser build

This changes browser/build.js to be able to use it from https://github.com/maraoz/customize-bitcore