implemented confirm(text, callback)

`confirm` is a part of an undocumented API that block the UI thread ( https://developer.mozilla.org/en-US/docs/DOM/window.confirm ), 

I had to use a signature of `confirm(text, callback)` instead of just `confirm(text)`. 

Thanks!