Fixes CodeMirror bug with JS syntax