Update karma.conf.js

Switched to current Karma module.exports config syntax.