Troubleshooting beforeunload alert.