Enable JavaScript alert()/confirm() in WebView. Fix #727

Tested locally. No test run, since there's no tests for the WebView, ergo, nothing can fail. u mad?

Fixes #727.