LeBron James torched his former team with a game-high 31 points as the Los Angeles Lakers thrashed the Cleveland Cavaliers.