Fixed undefined console object in IE 9