use term.js to render the UI