Modified to work with Google Maps API v3 (no API loader).