Add attachEvent handler

In case browser - mostly Oldie - is not compatible with
addEventListener.