Simplifying postmessage for IE