cross domain solution with postMessage and window.navigator