Auston Matthews finished off his 14th career hat trick to snap a 5-5 tie with 4:22 remaining as the Maple Leafs beat the Jets.