diff --git a/nodequeue.js b/nodequeue.js
old mode 100644
new mode 100755
index efa2c9d..b71149e
--- a/nodequeue.js
+++ b/nodequeue.js
@@ -1,3 +1,4 @@
+(function ($) {
 
 /**
  * Nodequeue object
@@ -417,9 +418,6 @@ Drupal.nodequeue.autoAttach = function() {
 
 }
 
-if (Drupal.jsEnabled) {
-  $(document).ready(Drupal.nodequeue.autoAttach);
-}
-
-
+$(document).ready(Drupal.nodequeue.autoAttach);
 
+})(jQuery);
\ No newline at end of file
