Bugfix fir IE8

Fixes two problems:

1) A typo

2) console not being available in IE unless the developer tool is open