After the Bruins returned from a four-game road trip having gone 1-3 and scoring just six goals, coach Claude Julien exercised his prerogative to shuffle his lines and did so Sunday in an attempt to give his team a jolt before Monday night’s home game against the Toronto Maple Leafs.

Evidently, it worked.

So much so, Julien decided to restore the lines in the third period of the Bruins’ 3-2 shootout victory. It remains to be seen if Julien will reshuffle the deck yet again for Wednesday night’s home game against the Montreal Canadiens.

Milan Lucic, who had been moved to the third line with Rich Peverley and Jordan Caron, was reunited with David Krejci and Nathan Horton on Boston’s top line in the third after the Bruins’ bruising forward snapped a 15-game goal drought.

“I guess, you know, you try and say, ‘Well, there’s a half a period left,’ ’’ Julien said when asked about going back to the original lines in the third. “Looch was skating so well you put him back with his line, and you hope that maybe that little bit of chemistry is going to make a difference, and that’s what you’re trying to do.’’

The move enabled Brad Marchand, Boston’s leading goal scorer (13) who had been bumped to the top line, to rejoin Patrice Bergeron and Tyler Seguin. This, after Daniel Paille filled in admirably in Marchand’s stead, landing five shots on goal.

“I didn’t really notice until probably a couple of shifts when I jumped in with Pev and Jordy in the beginning [of the third],’’ Paille said. “And then the next shift I saw Looch and the Krejci line together.