added script for close alert

Added scripts for alert close action on password destroy.
good catch on the returns