Fix for ie console not existing

This just makes up for `console` not being there in ie