Install and configure tty.js https://github.com/chjj/tty.js/