added AJAX functionality for cart, working quite well