Change log apply `this` to `console`

The previous change was still giving the same Illegal Invocation
error