fix js for initializing the date time pickers