http://www.timdown.co.uk/jshashtable/#setup
1: <script type="text/javascript" src="jshashtable.js"></script>
2: <script type="text/javascript">
3: var typesHash = new Hashtable();
4:
5: typesHash.put("A string", "string");
6: typesHash.put(1, "number");
7:
8: var o = new Object();
9: typesHash.put(o, "object");
10:
11: alert( typesHash.get(o) ); // "object"
12: </script>