resolves #255: upgrade mocha

Because of conflicts with node-webkit, we removed the global `global` object in v1.21.1.

Change to `test/bootstrap/karma.js` makes the tests pass.