More cross-browser method to detect event target (#29)