Implement custom javaScriptAlert()