Fix terminal.js and terminal.py examples