In this example, the callback function for the click event refers to the DIV the event is attached to. But, suppose I wanted to make the callback a reusable function for other plots. I would need to also pass a handle for the DIV into the callback. For instance, in JQuery, you can add additional data to be passed by including it in object form between the event type and callback: