JS: fix comments in spanning_tree