In practice I didn't need it because of the 
```python
 CodeMirror.requireMode('stex', function(){ 
```

line.  In fact, I can probably remove the 

```
<script src="{{ static_url("components/codemirror/mode/gfm/gfm.js") }}"
``` 

line...  But I haven't tried that yet