Bash Loop Through Array Javascript Documentation