IE8 compatibility (no window.console there)