codemirror options getting passed in, starting to modularize code