Moved CodMirror object creation into an external javascript file.