abstract away the annotation target path from javascript
extract out the function used to identify the annotation target for a
click event