update CodeMirror to 3.21

and require.js to 2.1.10

closes #4812