Martin Brodeur made 20 saves in what might have been his last game with the Devils, and Stephen Gionta scored the tiebreaking goal with under 37 seconds left to lift New Jersey to a 4-3 victory over the Detroit Red Wings on Tuesday night.
Adam Henrique, Marek Zidlicky, and Travis Zajac also had goals for the Devils (27-23-13), who closed within one point of Detroit (28-21-12).
Johan Franzen, Brendan Smith and Todd Bertuzzi scored for the Red Wings against Brodeur, who has been the subject of trade rumors leading up to Wednesday's NHL dealing deadline.
"We'll see what's going to happen," said Brodeur, who has a no-trade clause.
Gionta put the Devils ahead for good when he tipped Mark Fayne's point shot past Jimmy Howard for the winning goal.
Howard finished with 25 saves.