Charlie could have ran out of the room then shut the door but he stayed since that's the only way the vision of being rescued would come true. The window looked like he could have got through it if he tried. I don't want Charlie dead either but the island called everyone there for a reason. The code was designed by a musician, that was obviously Charlies purpose so he is no longer needed, unfortunately. Jack could have died his beard in the future, his ex wife was very pregnant (about 7-8 months) which I'm not sure how that fits into the timeline. As I guessed before I think it was Sawer's funeral because Jack only went because he though it would have drawn Kate to it. Neither family nor friend of Jack... sounds like Sawer to me.