Stocks are ending mostly lower on Wall Street as losses in consumer products companies and basic materials makers outweigh gains elsewhere including technology, the AP reports. Kraft Heinz lost 1.7% Thursday, and DowDuPont gave up 1.6%. Broadcom rose 2.8%. Mattel fell 2.4% following word that Toys R Us will shut down its US stores. The S&P 500 index fell 2 points, or 0.1%, to 2,747. The Dow Jones industrial average climbed 115 points, or 0.5%, to 24,873. The Nasdaq lost 15 points, or 0.2%, to 7,481. Small-company stocks fell. The Russell 2000 index sank 7 points, or 0.5%, to 1,576. (More stock market stories.)