Datepicker: fix jshint issues, CGL