Terminal emulator written in javascript