Can I trigger JS functions with events from the chart?