Added a mode autoloader for the codemirror element