Fixed setting locale for datepicker, when jquery-ui is loaded on page.