Inserting codemirror field + js setup