update codemirror to 3.1