completes shopping-cart.js