<script>
- var url = 'http://nominatim.openstreetmap.org/search?format=json&limit=1&q=<%$loc%>';
+ var url = 'xmlhttp-openstreetmap.html?loc=<%$loc%>';
$.getJSON(url,function(data){
var latlong = [data[0].lat, data[0].lon];
var mymap = L.map('mapid').setView(latlong, 15);