calculates total client side

Each time an event checkbox is clicked,
we update the total element so that it
can be displayed before submitting the form.