Fixes to get jquery datepicker working.