I am not sure what to make of this, I was more interested in your code than what it does.., being javascript.. and me being very inexperienced in the language. I took a copy for posterity.. thanks!
{ "country": "United Kingdom", "eligible_voters": 47000000, "locale": "en-GB" },
Only 47,000,000 eligible voters in the UK, is your data for all the other counties accurate?
The applet picked the UK for me, another interesting bit of code. It checks, and uses the US.., if it can't determine where you are.
I suspect you might see some 'simple sites' from me appearing in the future.
I have not checked the data for accuracy, what I saw seemed okay, but the list is AI generated, don't expect it to be correct and please report errors.