Apparently the Devils didn’t recall Cam Janssen from the minors for his toughness or forechecking. They needed his goal-scoring.

The enthusiastic right winger scored his first goal since March 2011 and only his fourth in 313 NHL games to help seal a 3-0 victory over the Philadelphia Flyers Thursday night at Wells Fargo Center.

“Who’d have thought that?” asked Devils coach Pete DeBoer, whose squad ended a two-game losing streak. “But it couldn’t happen to a better guy, and it was exactly what we needed.”

Adam Henrique scored the first Devils goal as they ended a goal-less streak of more than 151 minutes over seven periods and Martin Brodeur stopped 22 shots for his first shutout of the season, but it was Janssen who was the talk of a joyous postgame dressing room.

“That’s why we called him up. Somebody knew something that nobody else knew,” Brodeur said with a laugh. “It’s definitely kind of nice to get that cushion. It’s even nicer that it comes from him. We all know what he does. To get rewarded like that is a nice thing.”

Brodeur was protecting a 1-0 lead when Janssen scored at 3:01 of the third period.

Defenseman Adam Larsson took a shot and Janssen redirected it past Flyers goalie Ray Emery from above the right hash marks.

“Is that what happened? I don’t remember. I blacked out,” Janssen joked. “Unbelievable. I forgot what that feels like. And it’s pretty darn good. Just to be able to contribute for the win like that is a helluva feeling. And the boys were pumped up. To get the boys excited like that, too, adds (to the excitement).”

The puck deflected off the skate of Flyers defenseman Andrej Meszaros and through goalie Ray Emery’s legs.

“I think so. It hit somebody and went five-hole, but we’re not going to give him credit for it,” Janssen said.

It was his first goal since March 30, 2011, when he scored for the St. Louis Blues in Detroit. It was only his second goal in 148 career games for the Devils.

Jaromir Jagr added an empty-net goal at 19:58 and Brodeur completed the 122nd shutout of his career.

It didn’t take long for the Devils to end their scoreless streak at 151:03 by scoring at 1:57 of the opening period. Defenseman Eric Gelinas, who later left the arena on crutches when he was hit in the left foot by a Scott Hartnell shot in the third period, fired a shot that was tipped in by Henrique.