Fix #17 Issue
Refactor the way cursor is injected into the term and removed from term.
Cursor injection simplified in view.js