Added loop to index.html for testing