Fixing javascript join impl, and adding setOf. Unit tests included