The datepicker doesn't seem to be functional on first use. Is it functional with a few changes in the code?