A very simple terminal emulator in javascript