Removed references to console

Removed references to console because they break IE