DisjointSetTest (JavaScript)