Experimentally replaced alert with a jquery-ui dialog
Replaced all invocations of standard alert with a jquery-ui dialog