A leaner version of TTY.js