Safari Google Maps and javascript

Hello,

If you go to http://maps.google.com, type your address, and then copy/paste

in the address bar of your browser, you’ll only have to hit Enter to get longitude and latitude.

I’d like, not to be prompted with these infos, but to get them in AS. So I tried many conbinations but I didn’t succeed.

tell application "Safari"
	set LongLat to do JavaScript "var coord = gApplication.getMap().getCenter();return coord;" in document of window 1
end tell

If someone could tell me how to get the longitude and latitude returned to Applescript it would be nice.

Thanks

Vartan