diff --git a/js/relation-select.js b/js/relation-select.js
index 08e4f6f..d4f5b84 100644
--- a/js/relation-select.js
+++ b/js/relation-select.js
@@ -3,7 +3,9 @@
  */
 (function($){
 
-  var relationSelectItems = {};
+  Drupal.relationSelect = {
+      items: {}
+    }
 
   Drupal.behaviors.relationSelect = {
 
@@ -31,7 +33,7 @@
                     placeholder: 'rs-placeholder'
                   });
 
-                  relationSelectItems[$(this).attr("id")] = {
+                  Drupal.relationSelect.items[$(this).attr("id")] = {
                     element: $(this), // Cache a copy to speed up access
                     maxArity: Drupal.settings.relationSelect[relationType]['maxArity']
                   };
@@ -146,14 +148,14 @@
         } else {
 
           // Can anymore be selected?
-          if(countArity(id) == relationSelectItems[id]['maxArity']) {
+          if(countArity(id) == Drupal.relationSelect.items[id]['maxArity']) {
 
             // If only one item is being selected, assume user is changing the
             // item
-            if(relationSelectItems[id]['maxArity'] == 2) {
+            if(Drupal.relationSelect.items[id]['maxArity'] == 2) {
               // Deselect original
               deselectRow($row.parents('.view-content').find('tr.selected'), $(
-                  'input', relationSelectItems[id]['element']));
+                  'input', Drupal.relationSelect.items[id]['element']));
               // Select new row
               addInput($row, id, entitydata);
               selectRow($row);
@@ -165,7 +167,7 @@
           }
 
           // If max arity has been reached, close the popup
-          if(countArity(id) == relationSelectItems[id]['maxArity']) {
+          if(countArity(id) == Drupal.relationSelect.items[id]['maxArity']) {
             close();
           }
 
@@ -184,13 +186,13 @@
        */
       function getInput(id, entitydata){
         return $('input[value="' + entitydata + '"]',
-            relationSelectItems[id]['element']);
+            Drupal.relationSelect.items[id]['element']);
       }
 
       function countArity(id){
         // Count the arity (number of relations)
         // Always +1 as the edited / new node counts too
-        return $('input', relationSelectItems[id]['element']).length + 1;
+        return $('input', Drupal.relationSelect.items[id]['element']).length + 1;
       }
 
       /**
@@ -201,11 +203,11 @@
         $input = $('<div class="rs-wrapper" />');
         $input.append($('<input type="hidden" value="' + entitydata
             + '" name="'
-            + relationSelectItems[id]['element'].attr("data-field-name")
+            + Drupal.relationSelect.items[id]['element'].attr("data-field-name")
             + '[]" />'));
         $input.append(themeValue($row, entitydata));
         addInputRemoveLink($input);
-        relationSelectItems[id]['element'].append($input);
+        Drupal.relationSelect.items[id]['element'].append($input);
       }
 
       /**
