Added alert(totalAmount);