SimpleDictionary

Save this as SimpleDictionary.js. Usage should be really obvious.

var d = SimpleDictionary;

You can directly access values and keys: d.keys, d.values

You can Set, Get, and Remove keys: d.Set("foo", "bar"); d.Get("foo"); d.Remove("foo");

You can load values from and save values to "ini-style" files (i.e. key=value pairs). d.Save("test.ini"); d.Load("test.ini"); // note this overwrites all the existing values in the dictionary

That's it.