js for dismissible alerts