fix item counting in update cart JS