diff --git a/privatemsg-alternatives.js b/privatemsg-alternatives.js
index 070092b..927448c 100644
--- a/privatemsg-alternatives.js
+++ b/privatemsg-alternatives.js
@@ -6,7 +6,7 @@
       $("span.privatemsg-recipient-alternative").each(function() {
         $(this).after(
           // Replace the span with a link, add href and class.
-          $('<a>')
+          $('<a/>')
             .attr({'href' : '#'})
             .addClass('privatemsg-recipient-alternative')
             .text($(this).text())
@@ -39,4 +39,4 @@
     }
   }
 
-})(jQuery);
\ No newline at end of file
+})(jQuery);
