add term.js support