fixed shopping-cart.js to meet assignment