Update index.html

it is the working code need to update logic  bit better but it will work now happy coding