Gordon Hayward scored a career-high 22 points and hit the go-ahead free throw with 6 seconds to play, and the Jazz snapped an eight-game losing streak with an 86-85 victory over the Lakers on Tuesday.