fixing missing console.log for IE