Bugfix for JavaScript confirm.