Fixed some browser issues.

- Karma could not run because some dependencies were not picked up by browserify.
- The ES6 shims got misplaced when switching to browserify.