Monta Ellis scored 37 points as the Mavericks clinched a playoff spot and moved to within one game of the Warriors.