RewriteAlert Rewriting browser alerts Prompt and Confirm method on hold. Problems with how to implemnt asyncronous methods to emulate the native behavior