Use target instead of srcElement - compatibility.
Merge pull request #291 from noels/fix_glossary_js

Use target instead of srcElement - compatibility.