Bash Loop Through Array Javascript Push Key