Bash Loop Through Array Javascript Append Element To Div