Use different click-detection technique

Rather than listening for clicks on defined targets (which didn't work in IE <11), now we observe the coordinates where the target was clicked.