Refactoring css and js for Codemirror