Added mocha and karma for testing.