added basic loop to index.html