Issue with alert on a custom script