Browser MapReduce + Charting

Having dabbled in Mongo a bit, I was curious if there was an analog for MapReduce style functionality in browser JavaScript. I found a small script as a starting point, but made some minor modifications to support array inputs:

...