Fixed jQuery UI datepicker problem for start and end dates