ORLANDO, Fla., Nov. 13 (Ticker) -- The Cleveland Cavaliers lost a big lead, but LeBron James and Larry Hughes made sure they did not lose the game.

James and Hughes combined for 12 points in overtime to lead the Cavaliers to a 108-100 victory over the Orlando Magic.

NBA TV highlights from
The 20-year-old James also walked off the court as a record holder, becoming the youngest player in NBA history to surpass 4,000 points.

Orlando trailed by 17 points at halftime but outscored Cleveland, 32-23, in the third period and eventually took an 86-84 lead -- its first since 4-2 -- on two free throws by Steve Francis with 1:14 left.

"(Going to overtime) was the best thing to happen to us," James said. "We have been blowing teams out and this was a wakeup call for us.

Two more free throws by Francis made it 88-85 with 18 seconds to go, but Donyell Marshall drained his third 3-pointer of the game to tie it with 14 seconds remaining.

"I knew we needed three," said Marshall, who finished with 17 points. "I got a good look and it just went down."

"We executed that play well," Cavaliers coach Mike Brown said. "Zydrunas (Ilgauskas) set that silent screen and he (Marshall) popped and knocked down the three. Simple as that."

On Orlando's last possession in regulation, Francis dribbled down the clock and got off an 18-footer from the left side that bounced off the rim.

"We pride ourselves on playing defense," Hughes said. "Stay in front of the guy and make him take a tough shot. We will take the percentages on a contested jump shot."

Cleveland was held to 17 points in the fourth quarter but erupted for 20 in overtime, including the first six to take control. James scored seven of his 26 in the extra session and Hughes had five of his 22.

"They (Magic) made some big plays in the second half," James said. "We were able to make a big shot at the end of regulation and win it in overtime."

James, who also added five rebounds and three assists, needed 10 points coming in to surpass the 4,000 mark. At 20 years, 318 days (his birthday is Dec. 30), he eclipsed the previous mark set by Kobe Bryant (21, 216).

Francis scored 22 points and collected six rebounds and seven assists to lead Orlando, who had all five starters score in double figures.

"We fought so hard to get back into the game," said Magic forward Dwight Howard, who added 21 points and collected 16 rebounds for his fourth consecutive double-double. "We had them by three and came up short."

"We put ourselves in a position to come back and we did," Magic coach Brian Hill said. "I think any time (your opponent) makes a three like that at the end of the game, it's going to take a little life out of your guys."