Remove sum() javascript helper.

I needed this in my javascript _count and _sum implementations,
but I don't anymore.  In case we need it again, it's still in git
history.