Yup, you sure would think that the totals would be in the JSON output, but it's not. You have to compute it, which I do in the Javascript.
There's nothing hidden, all the code is freely viewable, provided you know how to use Developer mode.
I really should get everything updated in github, but I've been lazy/busy/un-motivated.
Dave