Prevent console.log errors in IE