A better way is to skip the "middle man" (ip)
jQuery.get("http://ipinfo.io", function(response) { console.log(response.city); }, "jsonp");
This gives you the IP, the city, the country, etc