generate autocomplete data in browser based on json response from ajax call