Update index.html

Fixing check on duplicates.