Update datepicker.js

Fixing comparison to use === instead or ==
if (dateStr === undefined)