updating CodeMirror