upgrade CodeMirror to 3.0