added console.log for IE