Javascript to total prices and workout total