Turn error blocks into single function and template file
Remove CodeMirror asset links