Update index.html

implemented for loop