Added js to change end time when start time is changed