switched base form to new datepicker JS