added cross document messaging for html5 iframe support