adding postmessage shim as suggested,fixes #51
Merge pull request #57 from mozilla/fix-51

adding postmessage shim as suggested,fixes #51