Index: location.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.module,v
retrieving revision 1.222.2.31
diff -u -r1.222.2.31 location.module
--- location.module	11 Apr 2010 21:28:34 -0000	1.222.2.31
+++ location.module	14 Apr 2010 01:31:43 -0000
@@ -933,8 +933,7 @@
       }
     }
   }
-  echo drupal_to_js($matches);
-  return;
+  drupal_json($matches);
 }
 
 /**

