The Jon Cooper era of Lightning history opened in rousing and dramatic fashion Friday.

Alex Killorn scored a tying goal with 15.1 seconds left in regulation, leading to Tampa Bay’s 5-4 shootout victory to give Cooper a successful debut in his first game behind the Lightning bench.

Teddy Purcell and Victor Hedman each converted shootout attempts as Tampa Bay twice rallied from down two goals for the victory in front of an announced Forum crowd of 19,204.

Tampa Bay moved to within four points of a playoff spot with 14 games remaining.

Steven Stamkos scored twice to give him a league-leading 25 goals on the season, while his cross-ice pass to Killorn helped send the game into the extra session. Nate Thompson added his seventh of the season, while Mathieu Garon shook off a shaky regulation showing to stop both shootout attempts for the victory.

It made for a night Cooper won’t soon forget.

“Wow, how about that,’’ Cooper said with a laugh as he opened his postgame remarks. “That was a lot of fun. I’m going to remember this one for a long, long time.’’

The game seemed destined to be more of a downer, as New Jersey twice opened up two-goal leads. And in the history of Devils hockey during the Martin Brodeur era, two-goal leads are generally about as safe as a vault at Fort Knox.