Its kind of confusing that the author use JS objects (aka hashes) as an entry inside the HashMap he's building. I think building the concept of a hash from the ground up would be more illuminating.
I figured that people who know enough to point this out already know what's up. People who don't will benefit from the code being easier to read.