tidying up loadurl, scrapping window.open (for iOS only)