fixes issues with console and IE9

ref to https://github.com/Codiad/Codiad/issues/287

ctrl-c not working, is still open