Mavs top Nets in NY