Iterating Through Array Javascript Join