synced javascript and focus-out so it won't stop javascript while it's still loading if the web view loses focus