fixes issues with console and IE9

ref to https://github.com/Codiad/Codiad/issues/287