Fix "canvas not defined" when using click callback.

Derived the relevant canvas for the click callback from evt.target.
Merge pull request #21 from stephenr85/patch-1

Fix "canvas not defined" when using click callback.