Complex sentence: It turned out that compass from the Nautilus can lead them to a person with revenge in their hearts, which gives Hook an idea to help track down Jafar, who might still have the ability to help him return to Storybrooke.
Split into simpler sentences: It turned out that the compass from the Nautilus can lead them to a person whose heart is filled with revenge. This gives Hook an idea to help track down Jafar, who might still have the ability to help him return to Storybrooke.