update the mocha-adapter script and move init mocha-adapter outside of ember run loop