anchor.diff:      });
   
       const lastDot = initialFilename.lastIndexOf('.');
  -    const end = (lastDot != -1) ? lastDot : initialFilename.length;
  +    const end = (lastDot !== -1) ? lastDot : initialFilename.length;
       input[0].setSelectionRange(0, end);
   
       fileOperationDialog.dialog('open');
  
positive.code: 
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  
    const isValidFilename = (filename) => {
      const contains = (illegal) => { return filename.indexOf(illegal) != -1; };
      if (alreadyExists(filename)) { return false; }
      if (contains('..')) { return false; }
      if (contains('\\')) { return false; }
      if (contains(' '))  { return false; }
      if (filename == '') { return false; }
      return true;
    };
  
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  
    const alreadyExists = (filename) => {
      return cd.inArray(filename, cd.filenames());
    };
  
  });
  //--></script>
  
negative.code:   fileRename.click(() => {
      const initialFilename = cd.currentFilename();
      const okInitiallyDisabled = true;
      const okClicked = filename => {
        cd.renameFile(initialFilename, filename);
        cd.loadFile(filename);
      };
  