Fixed undefined console in IE