Dwyane Wade scored 19 points for the Heat, who shot 47.6 percent from 3-point range (10 of 21) and 51 percent from the field overall.
James went 3 for 4 from the free throw line over the next minute, then drove for the go-ahead layup with 19 seconds left.
Jeremy Lin shot an airball from 3-point range with 10 seconds left, Wade caught it and the Heat escaped with their sixth straight win over Houston.
CELTICS 101, BULLS 95
CHICAGO -- Rajon Rondo had 20 points, nine rebounds and 10 assists to lead Boston over Chicago.
Rondo took advantage of Bulls point guard Nate Robinson for three quarters, helping the Celtics build a 12-point lead on 56 percent shooting. He extended his streak of consecutive games with 10 or more assists to 31, the longest in the NBA since John Stockton had 37 straight from Feb. 27 to Nov. 29, 1989.
Brandon Bass led four other Celtics in double figures with 16 points as Boston held off a furious late Chicago rally to snap a five-game losing streak at the United Center. Kevin Garnett had 15 points.
Luol Deng led the Bulls with 26 points and 11 rebounds.
The Celtics became the first team to score 100 points against the Bulls since April 8 last season, ending a streak that had reached 15 straight games.
HAWKS 95, TRAIL BLAZERS 87
Trail Blazers All-Star LaMarcus Aldridge finished with 14 points on 4-of-13 shooting. He added eight assists, but had just seven points in the first three quarters.
JAZZ 140, RAPTORS 133, 3OT
The Jazz rallied after trailing by 11 in the fourth quarter, and no basket was bigger than Jefferson's 3-pointer with 2 seconds left in regulation, a shot that bounced around the rim before falling through. It was just the second 3-pointer of Jefferson's nine-year career. He came in 1 for 25 from 3-point range.
DeMar DeRozan matched his career high with 37 points, Jose Calderon had 20 points and 17 assists, and Amir Johnson fouled out with 11 points and 14 rebounds for the Raptors, who lost their fourth straight.
Toronto has dropped eight consecutive home games against Utah.
THUNDER 92, PISTONS 90
AUBURN HILLS, Mich. -- Russell Westbrook scored a season-high 33 points and keyed a fourth-quarter comeback as Oklahoma City rallied to beat winless Detroit.
The loss left the Pistons with an 0-8 record, the worst start in franchise history. It was the fourth game in five nights for the Thunder, who improved to 6-2.
Westbrook, who also had 10 rebounds and four assists, contributed six points -- all on free throws -- to a 13-0 Thunder run to open the fourth quarter that turned a 73-62 deficit into a 75-73 lead with 8:11 left.
Kevin Durant, who hit a tough runner with 47.8 seconds remaining that gave Oklahoma City an 88-85 advantage, added 26 points and nine rebounds.
BUCKS 105, 76ERS 96
The Bucks improved to 3-0 on the road for the first time since they won their first four in 2001-02. Mike Dunleavy added 13 points and Milwaukee shot around 60 percent most of the game.
Jennings hit four 3-pointers, had four steals and was 5 of 5 from the free throw line.
Before the game, Philadelphia learned center Andrew Bynum will miss at least five more weeks because of a bone bruise in his right knee and might not play until early January.
TIMBERWOLVES 90, MAVERICKS 82
Because of a rash of injuries, the Timberwolves dressed only 10 players. The 6-foot-11 Pekovic exited with 2:46 left in the third quarter with a sprained left ankle and didn't return.
Dallas coach Rick Carlisle was ejected after arguing a foul call with 5 minutes left. Assistant coach Jim O'Brien coached the team the rest of the way.
SUNS 110, NUGGETS 100
PHOENIX -- Goran Dragic scored 21 points, including 4-of-5 shooting on 3-pointers, to lead seven Phoenix players in double figures as the Suns snapped Denver's four-game winning streak.
Shannon Brown added 19 points, Michael Beasley 16 and Jared Dudley 15 for Phoenix. Markieff Morris scored 13 points and had a crucial steal down the stretch. Marcin Gortat and Luis Scola added 12 points apiece for the Suns, who finished the game with a 13-4 run.
Andre Iguodala scored 17 for Denver. JaVale McGee added 16, pretty much all of them on thundering dunks, and Danilo Gallinari scored 15 for the Nuggets. Kenneth Faried scored 14 on 6-of-7 shooting but didn't take a shot in the second half.
Dragic's 3-pointer from the top of the key put Phoenix ahead 100-96 with 3:14 to play.
Copyright 2012 by The Associated Press
This story is from ESPN.com's automated news wire. Wire index
MORE NBA HEADLINES
- Cavs' James after loss: 'Not a very good team'
- Nowitzki keys Mavs' rally to put away Thunder
- Suns spoil Kobe's return for 6th straight win
- Spurs win to snap 6-game skid vs. Rockets
MOST SENT STORIES ON ESPN.COM
- Vintage Dirk Delivers For Mavs
- Starting at center for an injured Tyson Chandler, Dirk Nowitzki dropped 30 on OKC as the Mavs held on.