Wrote Ajax calls using javascripts to fetch list of cities based on a selected country and storing country and city into cookie