diff --git a/lib/scripts/editor.js b/lib/scripts/editor.js
index 2009ce6afc82fccd5de3eb4dda8386db0cb67442..f36d446d56c8bf1c176e61286bf96b2b19723413 100644
--- a/lib/scripts/editor.js
+++ b/lib/scripts/editor.js
@@ -61,9 +61,9 @@ var dw_editor = {
         jQuery.each([
             ['larger', function(){dw_editor.sizeCtl(editor,100);}],
             ['smaller', function(){dw_editor.sizeCtl(editor,-100);}],
-            ['wrap', function(){dw_editor.toggleWrap(editor);}],
+            ['wrap', function(){dw_editor.toggleWrap(editor);}]
         ], function (_, img) {
-            jQuery(document.createElement('img'))
+            jQuery(document.createElement('IMG'))
                 .attr('src', DOKU_BASE+'lib/images/' + img[0] + '.gif')
                 .click(img[1])
                 .appendTo($ctl);