updated geolocation.js with outputting html code