Create Set From Array Javascript Join Paths