if you need geolocation information through javascript, you can use maxmind's free one:
A simple line-by-line regex loop should be enough to parse this though.
http://en.wikipedia.org/wiki/JSON#JSONP
Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server other than server1.example.com. An exception is the HTML <script> element.
Great find!