Moved the alert modal initialization and close button handler to initPage(),
where it would only be performed once.  Otherwise, alertDialog() would
perform that initialization each time that function was invoked.