Serialize events to JSON and display them on a page