basic JavaScript shopping cart