browserify -> webpack
Code refactoring