Bash Shell Loop Through Array Javascript Push Data