Trying to get location data to pass into js