I would use an array or a global dictionary. Probably a dictionary.
If you want it to persist, grab it's data AsJSON when it changes, and store it in a webstorage key. Then recall it when the game first starts (you can set a dictionary from JSON).
Global dictionaries can also be a good alternative to global variables in certain cases. Just FYI.