js functionality for adding new item to shopping cart