new js for datepicker