MDL-69505 core_form: fix js min/max date restriction in dateselector