Ajax query, updating map, and location change full function!