Enable datetimepicker in javascript.