Only add datepicker script when datepicker enabled