Created an AJAX based cart by writing server-side Ruby code.