Thomas Harley scored the game-winning goal with four seconds left and Roope Hintz recorded a three-point night as the Dallas Stars defeated the New Jersey Devils 4-3.