ajax for name and location