Initializing CodeMirror from the Content-Type header properly