* refactored karma-mocha-main.js