ajax.js adapted to work with AJAXCartController