Recentered the index key generator to deal with bugs at two edges of the map.
Transferred the controls over to ReactJS