Update index.md

Refactor. Fixes a typo of EnvironmentEvent being referred to as EnviromentEvent which leads to developers believing they're using a deprecated class.