change from mocha-phantomjs to karma, with code coverage.