Basic example

The js is not minified so it is readable. See grandtotals.js.