Client-side event handling plotclick