JavaScript to load populations of countries