Joe Pavelski's 3rd period goal helps Sharks snap 4-game home skid with 4-2 win over Flyers

Philadelphia Flyers' Mark Streit (32) and goalie Steve Mason, right, defend a shot from San Jose Sharks' Joel Ward (42) during the first period of an NHL hockey game Wednesday, Dec. 30, 2015, in San Jose, Calif. (AP Photo/Ben Margot) (The Associated Press)

San Jose Sharks goalie Martin Jones, right, blocks a shot from Philadelphia Flyers' Wayne Simmonds (17) during the second period of an NHL hockey game Wednesday, Dec. 30, 2015, in San Jose, Calif. (AP Photo/Ben Margot) (The Associated Press)

San Jose Sharks' Joe Thornton, left, is congratulated after scoring against the Philadelphia Flyers during the second period of an NHL hockey game Wednesday, Dec. 30, 2015, in San Jose, Calif. (AP Photo/Ben Margot) (The Associated Press)

Joe Pavelski scored twice in the third period to help the San Jose Sharks snap a four-game home losing streak by beating the Philadelphia Flyers 4-2 on Wednesday night.

Pavelski scored the tiebreaker just after a power play with 6:15 left and added a power-play goal in the final minute. Brent Burns and Joe Thornton added power-play goals for the Sharks, who entered with the worst home record in the league at 4-10.

Martin Jones made 17 saves.

Sean Couturier and Claude Giroux scored for the Flyers. Philadelphia has one win in its past 19 meetings against San Jose.

Steve Mason got the late nod to start in goal in place of the sick Michal Neuvirth. He made 29 saves.