fixed console var
check for window.console (<IE8)