Requiring codemirror in main.js