Refactors to use Browserify and node modules for dependency management