diff --git a/browserid/static/include.js b/browserid/static/include.js
index e899d6b475e1acfad4765b4121ef639c1cda28e7..e5a2eb89d5dd2ebb79794ccf410a2ce32644aa34 100644
--- a/browserid/static/include.js
+++ b/browserid/static/include.js
@@ -40,6 +40,14 @@ if (!navigator.id) {
   navigator.id = {};
 }
 
+// XXX take this out when Lloyd is back!  It is to fix dev.myfavoritebeer.org 
+// until he can change the uses of addEventListener.
+if(!document.addEventListener && document.attachEvent) {
+  document.addEventListener = function(name, callback, bubbles) {
+    document.attachEvent(name, callback); 
+  }
+}
+
 if (!navigator.id.getVerifiedEmail || navigator.id._getVerifiedEmailIsShimmed)
 {
   var ipServer = "https://browserid.org";