diff --git a/js/gmap_marker.js b/js/gmap_marker.js
index 51df282aaaed28c7168dc41816c57ec14a274326..09c574487e0d3dce357a7e9b4ae24306dabaec92 100755
--- a/js/gmap_marker.js
+++ b/js/gmap_marker.js
@@ -1,27 +1,30 @@
 /* $Id$ */
 
 /**
+ * @file
  * GMap Markers
  * GMap API version -- No manager
  */
 
+/*global Drupal, GMarker */
+
 // Replace to override marker creation
-Drupal.gmap.factory.marker = function(loc,opts) {
-  return new GMarker(loc,opts);
+Drupal.gmap.factory.marker = function (loc, opts) {
+  return new GMarker(loc, opts);
 };
 
-Drupal.gmap.addHandler('gmap', function(elem) {
+Drupal.gmap.addHandler('gmap', function (elem) {
   var obj = this;
 
-  obj.bind('addmarker',function(marker) {
+  obj.bind('addmarker', function (marker) {
     obj.map.addOverlay(marker.marker);
   });
 
-  obj.bind('delmarker',function(marker) {
+  obj.bind('delmarker', function (marker) {
     obj.map.removeOverlay(marker.marker);
   });
 
-  obj.bind('clearmarkers',function() {
+  obj.bind('clearmarkers', function () {
     // @@@ Maybe don't nuke ALL overlays?
     obj.map.clearOverlays();
   });
diff --git a/js/poly.js b/js/poly.js
index 22007f14111aacd864e329a93abe9ab608fcb194..d7a7801ce4ec79bc54ff219bad809e36573f6d19 100644
--- a/js/poly.js
+++ b/js/poly.js
@@ -1,41 +1,48 @@
 /* $Id$ */
 
 /**
+ * @file
  * GPolyLine / GPolygon manager
  */
 
+/*global Drupal, GLatLng, GPoint */
+
 Drupal.gmap.map.prototype.poly = {};
 
 /**
  * Distance in pixels between 2 points.
  */
-Drupal.gmap.map.prototype.poly.distance = function(point1,point2) {
-  return Math.sqrt(Math.pow(point2.x - point1.x,2)+Math.pow(point2.y - point1.y,2));
+Drupal.gmap.map.prototype.poly.distance = function (point1, point2) {
+  return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2));
 };
 
 /**
  * Circle -- Following projection.
  */
-Drupal.gmap.map.prototype.poly.computeCircle = function(obj,center,point2) {
+Drupal.gmap.map.prototype.poly.computeCircle = function (obj, center, point2) {
   var numSides = 36;
   var sideInc = 10; // 360 / 20 = 18 degrees
-  var convFactor = Math.PI/180;
+  var convFactor = Math.PI / 180;
   var points = [];
-  var radius = obj.poly.distance(center,point2);
+  var radius = obj.poly.distance(center, point2);
   // 36 sided poly ~= circle
   for (var i = 0; i <= numSides; i++) {
-    var rad = i*sideInc*convFactor;
+    var rad = i * sideInc * convFactor;
     var x = center.x + radius * Math.cos(rad);
     var y = center.y + radius * Math.sin(rad);
     //points.push(obj.map.getCurrentMapType().getProjection().fromPixelToLatLng(new GPoint(x,y),obj.map.getZoom()));
-    points.push(new GPoint(x,y));
+    points.push(new GPoint(x, y));
   }
   return points;
 };
 
-Drupal.gmap.map.prototype.poly.calcPolyPoints = function(center, radM, numPoints, sAngle) {
-  if(!numPoints) {numPoints = 32;}
-  if(!sAngle) {sAngle = 0;}
+Drupal.gmap.map.prototype.poly.calcPolyPoints = function (center, radM, numPoints, sAngle) {
+  if (!numPoints) {
+    numPoints = 32;
+  }
+  if (!sAngle) {
+    sAngle = 0;
+  }
 
   var d2r = Math.PI / 180.0;
   var r2d = 180.0 / Math.PI;