added sample to show looping through ajax