Use JSON in product list loading.
Clean up code in cart javascript.