more safely bind to console.log

this allows the code to be run client-side without throwing 'Illegal Invocation' errors