Updated

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.