Mavericks overcome James' triple-double, lead 3-2