shopping cart exercise for javascript