Fix Perl warning about variable redeclaration
Move to CodeMirror 3.02 addon structure