fix date and codemirror loading