JavaScript helper for Google Places Autocomplete