LeBron James had 28 points and Russell Westbrook contributed a triple-double to help the Lakers stop a four-game losing streak with a win over the Magic.