Update datepicker.js

Appply patch for  #2659