master: Cleaned up javascript, added totals row to results as well as CSV export of the results set.