Refactored some client/Terminal.js and fixed some semicolon minutae