Nowitzki passes 25,000 points, Mavs reach .500