setting a selected country filling color and refactoring the globe js code