Fixing console.log issue in IE8