fix karma.js: Fix for IE's console.log's lack of `apply`

Use Function.prototype.apply.call(log, ...) instead of log.apply(...)
to avoid an error when IE's console is open.

Closes #329