Shell Script Loop Through Array Javascript Duplicates Crossword