WASHINGTON -- The New Jersey Devils overcame two separate two-goal deficits to defeat the Washington Capitals 5-4 in overtime Saturday at Verizon Center.

Defenseman Andy Greene deflected the rebound of Jaromir Jagr's wrist shot past Braden Holtby 43 seconds into overtime to give the victory to the Devils, who trailed 3-1 after two periods and 4-2 with less than 12 minutes remaining in regulation.

"I honestly can't remember the last overtime goal I scored," Greene said. "It feels great to do it and get a big win tonight."

Marek Zidlicky scored twice, and Jagr and Dainius Zubrus each had a goal for New Jersey. Jagr tied Mark Messier for seventh place on the NHL's all-time goal list with the 694th of his career.

"I felt like we were playing very good hockey the first two periods, and I look at the scoreboard and we were down 3-1," Jagr said. "That was kind of tough to swallow, but we got some lucky bounces in the third period and tied the game and went to overtime again. I thought we responded very well when we were down two goals, and it's a big win for us."

"[The coaching staff] said we had to keep doing the same thing," Capitals defenseman Mike Green said of the locker-room conversation between the second and third periods. "We were successful in the second period and we had to keep that going in the third. … We played a good 40 minutes, but we needed 60 tonight."

Jagr opened the third-period scoring at 5:28 with his 13th of the season, a sharp-angle power-play goal to cut the Devils' deficit to 3-2, but Ovechkin responded at 8:07 with a wrist shot from the slot to secure his ninth straight season with at least 30 goals, making him the only player to score 30 in every season since 2005-06, when he entered the NHL.

Washington's second two-goal lead evaporated 3:40 later, first when Zidlicky snuck into the slot undetected for his second goal of the game.

Zubrus tied it 4-4 with 8:13 remaining in the third. Travis Zajac intercepted Holtby's clearing attempt and quickly fired it on net, where Zubrus was able to deflect it past the goalie.

The Capitals and Devils ultimately combined for 17 shots by the end of the first period, but each team, playing the second half of back-to-back sets, plodded through the early portion of the game.

Washington had the only shot on goal through the first 7:24, eventually peppering Martin Brodeur with six unanswered attempts near the midway point.

The Devils did not register their first shot on goal until there was 8:34 remaining in the period, but they made it count on the power play to take a 1-0 lead. New Jersey worked the umbrella, beginning with Jagr along the right half-wall. He passed to Greene at center point, who fed Zidlicky at the left circle for a one-timer that beat Holtby high short side. It was Zidlicky's first goal since Nov. 20.

The pace picked up considerably in the second period -- a style of game that favored the Capitals -- and Chimera's seventh goal of the season tied the game 1-1 at 10:07. After having his wraparound attempt foiled by Brodeur, Chimera was able to locate the rebound and beat the goaltender before he could react.

Grabovski lifted Washington to its first lead of the game less than five minutes later, finishing off an impressive passing display when Eric Fehr found him on the doorstep for his 10th goal of the season. Ward then pushed the lead to 3-1 within the period's final minute, collecting Green's rebound in transition.

The Devils have won three of four, having earned points in all four games. The Capitals lost for the fourth time in their past 10 games.

"We got a point out of it," Chimera said. "It's not like it's the end of the world. They are a good team and they are playing desperate. … Obviously, it was disappointing, but we have to move on and look at the bright spots."