iteration F2:creating an ajax-based cart