Right now we use codemirror's JavaScript mode on the website but there's a JSX mode now so we should start using that instead.

var order = line.order;
    if (order == null) order = line.order = bidiOrdering(line.text);
    return order;
  }
  
  function makeHistory(startGen) {
    return {
      
      
      
      done: [], undone: [], undoDepth: Infinity,
      
      
      lastTime: 0, lastOp: null, lastOrigin: null,
      
      generation: startGen || 1, maxGeneration: startGen || 1
    };
  }
  function attachLocalSpans(doc, change, from, to) {