diff --git a/js/viewsreference.js b/js/viewsreference.js
index be72451..c74cc94 100644
--- a/js/viewsreference.js
+++ b/js/viewsreference.js
@@ -2,7 +2,7 @@
  * @file
  */
 
-(function ($) {
+(function ($, Drupal, drupalSettings) {
 
   'use strict';
 
@@ -52,4 +52,4 @@
     }
   };
 
-})(jQuery, drupalSettings);
+})(jQuery, Drupal, drupalSettings);
