Set up basic ajax functionality for cart.