Added JS total Calculations