Totally had an aha moment! The episode synopsis talks about
Emma and Hook stealing a compass. After I read it I sat here for a long time trying to figure out where in the fictional world, there was a magical compass. Then it hit me, Captain Jack Sparrow had a magical compass, that always pointed to where he wanted to go. Is that the magical compass hook wants to get back to SB. My first thoughts were towards something peter pan had, but it would totally make since for hook to know about it since both him and sparrow are pirates.
That jack of jack in the beanstalk was jack sparrow, i read some kind of interview with the creators who said they would love to have jack sparrow but only if johnny depp played him, what if they managed to get him to make a guest appearance?? Would be the biggest surprise ever.