Understanding Html Css And Javascript Foreach Array Index