The Toronto Maple Leafs needed to find a spark and some line shuffling did the job in a 5-2 victory over the New York Islanders.