JS alerts working beautifully