Stocks were higher on Thursday, with the market showing its best gain in a month, after Johnson & Johnson, Goldman Sachs, and Mattel all announce results that beat estimates. The Labor Department also announced that consumer prices rose only 0.1 percent last month, excluding food and energy costs, while gasoline prices came down since then.