Update datepicker.js

Apply patch  #2659