Close parents('.alert') instead of parent() in alert

This allows the close button to be nested deeper within the alert. For example, the alert content might be inside a .container.