added AJAX to make the cart update without reloading page