changes in addtocart js