This function itself makes another AJAX call to get all the countries -- the result is that when you hit the bottom of the page, two requests are made, and the second one loads in all the countries *again*, resulting in a doubled-up list.