test for window.postMessage, jQuery, promises