James Harden finished with 23 points, nine rebounds and 12 assists as the Brooklyn Nets won on the road against the Dallas Mavericks.