Datepicker polyfill: Fixed typo in extends to correct issue in #1170.