diff --git a/popups.js b/popups.js
index e9711b6..4b3b3dd 100644
--- a/popups.js
+++ b/popups.js
@@ -776,7 +776,7 @@ Popups.addJS = function(js) {
   }
 
   // Add new JS settings to the page, needed for #ahah properties to work.
-  Drupal.settings = js.setting;
+  $.extend(true, Drupal.settings, js.setting);
 
   return inlines;
 };
