i18n javascript escape issues in i18n_datePicker()

Should we escape the monthNamesShort, dayNamesShort and dayNamesMin as well? 
How low is the probability to have a single quote in an abbreviation?
Merge pull request #1149 from emanwebdev/patch-9

i18n javascript escape issues in i18n_datePicker()