Updated term.js for better console usage