Moved references to showAlert() after it loads jQuery