Build up "hash of hashes" in javascript and access the data contained