NBA: LeBron James helps Cavaliers snap losing streak