converted codemirror update snippet into a script in the bin directory.