wrt my comment above: What if this was just an else block and would it be wrong to add class jstree-closed to a node that didn't have the class before?