js confirm in schedules