Fix: Increased security when using the webpage alert override function.
Fix: Restores compatibility with Safari < 6.