Marvin Williams scored 23 points and rookie Trey Burke hit a jumper with 24 seconds remaining to lift the Utah Jazz to a 94-89 victory over the Miami Heat on Saturday night.

Trailing 87-79 after Williams hit two 3-pointers, the Heat used a 10-4 run to draw within two points when Ray Allen made a 3 from the corner with 46 seconds to play.

Burke, who had 13 points, rose up and drained the clutch 19-foot jump shot to beat the shot clock and Gordon Hayward's free throw clinched the win for the Jazz, who have beat the Heat at home three straight times.

Dwyane Wade had 19 points for the Heat, who missed their last four shots from the field to thwart their comeback. LeBron James was 4 of 13 from the field for 13 points, his lowest scoring total since he had 13 points in a 104-88 win over Atlanta on Nov. 19.

Hayward nearly had his first triple-double with nine points, 11 assists and nine rebounds while often guarding Wade and James. Richard Jefferson had 14 and Alec Burks had 12 points for the Jazz, who snapped their four-game losing streak in front of a frenzied crowd.

James subbed in with 7:54 to play and his team trailing 77-70 and the Heat looked poised for a comeback as they also reached the penalty with 6:51 to play. But James missed his only two field goal attempts of the fourth quarter and was 2 of 4 from the line.

The young Jazz, who entered the game with worst record in the Western Conference, relied on their two veterans down the stretch until Burke's big shot.

Williams, who averages 9.9 points, has scored 67 points in his last three games and made 5 of 8 from beyond the arc in this one.

The eighth-year forward shot an air ball in the fourth quarter but then made a pair of 3-pointers — the last shot just beating the shot clock after Jefferson dove to the floor to gather a loose ball and flip it to Utah's hot hand.

Once the Heat turned up the defensive pressure, the Jazz were often scrambling to get any shot they could muster late in the clock. When the ball ended up in the hands of Williams and Jefferson, who had seven in the final period, good things happened.

James has averaged 31.3 points and 7.8 assists per game in his last four on the road as the Heat have found their offense, shooting better than 50 percent.

The four-time MVP also had scored 30 or more in six straight trips to Salt Lake City, averaging 33.5 points while hitting 57.7 percent from the field, but didn't ever get things going in a contest that snapped the Heat's three-game winning streak.

In the second game of a six-game Western Conference road trip (that will be interrupted by the All-Star break), the Heat faced an active Jazz defense that dared the Heat's lesser known players to beat them. Norris Cole and Mario Chalmers, who each scored 12 points, found themselves wide open again and again as the Jazz collapsed on Wade and James.

Even after a couple nights off, the Heat started sluggishly and the Jazz ran around and through them for a 32-18 lead in the first quarter. The Jazz had 11 assists in the opening period and shot 62 percent.

James gave the Heat their final lead in the opening moments of the third quarter at 54-52, but Utah controlled the game the rest of the way.

The Jazz seemed a step quicker to loose balls and outrebounded the Heat 41-32. Utah had 11 second-chance points to just two for Miami.

NOTES: The NBA assessed a $5,000 fine to Chalmers for a flop in the third quarter against the Los Angeles Clippers on Wednesday. The league office previously warned Chalmers for a flop against Atlanta on Jan. 20. . James had 30 points and the Heat shot a franchise-best 63.4 percent from the field when the Heat thrashed Utah 117-94 in Miami on Dec. 16. . James expressed his displeasure after a foul call on Derrick Favors' drive with 1:57 to play.