Update index.html

Console log index in a loop.