Update index.md

Fixed examples - "event" should be added to function parameters.