Made GlobalError use a jquery dialog box