Updated with mocha test runner and karma