changing geolocation.js to fn getWifiInfo which throw an alert