+jshint directive, getCaretPos function outline, some doc alterations