Alternate version of countries_service using some JavaScript patterns