hits ESCAPE key to get rid of javascript alert.  The normal try catch blocks do not work