Fix issue where the cursor doesn't move immediately, make isView a method of editor, fix jshint errors.