Bash Script Loop Through Array Javascript W3schools Dom