add jquery tables to patient report

add javascript and css to patient.brew
adjust writeHTMLtable function so that it will handle both tables that
have a "Total" row and tables that do not (summary report has "Total"
row and patient report does not)