Implement custom javaScriptConfirm()