Fix IE 8 console not defined issue.