Added subtotal details and javascript to automatically update the subtotal details and total.