Backwards compatible window.postMessage()