add cart page js operation