Build: Upgrade npm devDependencies
Build: Remove obsolete UglifyJS workaround
Tests: Blacklist beforeunload test in iOS

iOS has the window.onbeforeunload field but doesn't support the beforeunload
handler making it impossible to feature-detect the support.

Fixes #14717
Closes gh-1496