add alert dismissal js plugin