end date dynamic changing for interventions switched to jquery