Backport datepicker script