refactor CodeMirror Kevscript mode & autocompletion