Added karma and mocha for testing