Updated index.html

Fixed a bug where the map wouldn't change when the selected state
changed