#16 Fixing broken template update with CodeMirror