JS Totals fix