more safely bind to console.log

this allows the code to be run client-side without throwing 'Illegal Invocation' errors
Merge pull request #17 from danlangford/patch-1

more safely bind to console.log