Refactors code to use browserify instead of concat