Fix for problem with missing console object in IE browsers