IE undefined console fix