refactoring on build using browserify / es6. grunt is now only for testing.