Removed redundant or unused local variables. Added setSelectedRegions function to WorldMap prototype