Fix q replacement by hr/promise in term.js