Check if window.postMessage is available