Fixed bug with confirm() => window.confirm()