Removed datepicker destroy option and added each in JS