At the vending machine, Juliet said something about getting coffee sometime and that they could go dutch. It was the same thing she said to James when she died.
I’m guessing that this was one of the few times in which the sideways world interacted with the realtime world.
So when she had her flash or memory of dying in Sawyers arms, she actually asked to go out for coffee?
Also, did Ben have a complete flashback? Is that why he cried when Danielle said he was like a father to Alex?