fixed change event on codemirror
fixed writing binary files with FileWriter API #bugfix