Updated create alerts javascript to maintain and abort any ajax calls made in the main window