Shopping Cart application in JavaScript