Added geoloaction to javascript.