Refactor + switch from RequireJS to Browserify