
  var options = {
    schema: schema,
    schemaRefs: {"job": job},
    mode: 'code',
    modes: ['code', 'text', 'tree', 'preview'],
    onValidationError: function(errors) {
      console.error('onValidationError', errors);
      const outputEL = document.getElementById('onValidationOutput')
      outputEL.innerHTML = '<code>onValidationError</code> was called with ' + errors.length + ' error' + (errors.length > 1 ? 's' : '') +  ' <br> ' +
        'open the browser console to see the error objects';
    