Fixes to window.open usage outside InAppBrowser