using codemirror for script input