replaced code in index.html