Update terminal_emulator.js