Refactored and accessed country.js array of objects