Actually, my theory is that Rumpelstiltskin wrote the book back in Fairy Tale Land. I’m suspecting that we will eventually find out that Mary Margaret got the book in the pawn shop. I just have a feeling that he is orchestrating everything, including the timing of Henry getting the book and leaving to get Emma.