Fixed possible IE bug where it doesn't recognise console