Javascript MS-DOS console emulator