Minor HTML changes

Used data-index attribute instead of id to store item index in HTML.