Explained in depth the js behind the cart viewing code