A javascript based console emulator