modularize browser build.js
Merge pull request #14 from maraoz/refactor/browser-build

modularize browser build.js