Accesing dropdown in js file

Did you try this...

              data.forEach((item) =>
                  let value = item.name;
                  let text = item.name;
                  options.push({ v: value, t: text, });
                  $("#node-input-options").append(
                    $("<option></option>").attr("value", value).text(text)
                  );
                  if(value == node.selectedValue) $('#node-input-options').attr('selected','selected');  //<<<<<
              );

What it does: as you build your select, if the remembered selection (node.selectedValue) matches the value being added to the options, set the selected attribute of the option being added to value selected.

This was pointed out here - did you try it?