add postmessage script