Docs: added code tag for demo code in events.html