Mavs win, Carlisle gets win No. 500