Removed references to console

Removed references to console which was blocking compilation in IE.