Javascript library for generating actors and events