handle undefined escape
make the codemirror var global