Add JS helper to copy dates in event form.