js confirm in notifications