Fixes datescripts for datepicker