Updated script for alert box