Fixing jqueryui datepicker issues