I have this javascript code that expands and collapses html table rows. It works in Firefox:
const id = "item-" + item.split(" ").join(&qu