JS: fix spanning_tree issue