update add_item function on Cart.js