console.log is not always accessible in IE