fix console.log being undefined on IE etc