Updates JS events for datepicker