Vince Carter had 17 points, nine rebounds and eight assists and the New Jersey Nets spoiled the return of NBA leading scorer Dwyane Wade to the Miami lineup after a one-game absence with a 96-88 victory over the Heat on Friday night.

Jarvis Hayes hit two late jumpers and rookie Chris Douglas-Roberts, getting playing time because of a shoulder injury that has sidelined Devin Harris, added a 3-pointer with 1:10 to go as New Jersey won its second straight game.

Hayes and Douglas-Roberts each finished with 18 points and Brook Lopez added 15, including two go-ahead free throws with 7:25 to go after Miami rallied from a 14-point deficit to tie the game. The point total was a career-high for Douglas Roberts.

Wade had 27 points, eight rebounds and six assists in returning from a hip flexor injury that caused him to sit out Wednesday night's loss in Boston. Michael Beasley added 17 points and Jermaine O'Neal had 15 as the Heat matched their season high with a three-game losing streak.

Wade drew the biggest cheer of the game with 1:57 left in the third quarter when he one-handed an 85-footer off the backboard into the basket.

Unfortunately for the Heat, the right-handed football-type heave came after O'Neal was whistled for a questionable foul knocking the ball away from Lopez.

However, the shot seemed to wake up the Heat after nearly three dismal quarters and they pulled within four heading into the final quarter.

Miami tied the game twice in the fourth quarter, the final time on a layup by Daequan Cook with 7:49 to go.

Lopez then hit his two free throws, and Douglas-Roberts, who scored a 14 earlier this week against the Knicks, hit two free throws and followed a fastbreak miss with a layup for a 79-73 lead. A 3-pointer by Keyon Dooling capped the 9-0 run and gave New Jersey an 82-73 lead.

Miami made one final run and drew within 87-84 on two free throws by Udonis Haslem with 2:34 to play.

Hayes then took a behind-the-back pass from Carter and hit a baseline jumper.

After Wade drove the lane for a layup, Hayes hit another jumper and Douglas-Roberts followed with his 3 to give the Nets a 94-86 lead.

Carter hit two free throws and a 3 to help New Jersey build a 14-point lead early in the third quarter. The margin was still 10 after Lopez converted the two free throws following the foul against O'Neal, but Miami finished the third quarter with an 8-2 spurt that Wade capped with a steal and dunk.

Notes:@ Nets backup C Sean Williams sat out the final game of a two-game suspension the team handed down after he was arrested in Colorado on Monday for a disorderly conduct charge. ... Jamario Moon of the Heat missed two dunks in the opening 90 seconds. ... Before the game, Harris said that he was feeling better but he has no timetable for playing. ... Nets F Ryan Anderson was sent home from the morning shootaround with an upper respiratory problem. He did not play.

Copyright 2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.