diff --git a/js/locpick.js b/js/locpick.js
index 09746fa603fc3a96877b30ddc5764da42a24f292..e801d0b705489dc9e4724e22a789091904fac121 100644
--- a/js/locpick.js
+++ b/js/locpick.js
@@ -7,6 +7,7 @@
 
 /*global $, Drupal, GEvent, GLatLng, GMarker */
 
+(function ($) {
 Drupal.gmap.addHandler('gmap', function (elem) {
   var obj = this;
 
@@ -141,3 +142,4 @@ Drupal.gmap.addHandler('locpick_longitude', function (elem) {
     }
   });
 });
+})(jQuery);