Fixed event hooks for some browsers.

For some reason, not all browsers have the media.src attribute,
though (as far as I can tell) all of them have media.target.src.