Wrapper in JS for Google Maps V3