​Create your own visited states map​ or check out the ​JavaScript Maps​.