Fix log() in Google Chrome

Chrome throws a `TypeError: Illegal invocation` when `window.console.log`
is called and `this` is not `window.console`.

See https://code.google.com/p/chromium/issues/detail?id=48662