Clean up overriding of javaScriptPrompt.