simpler crossbrowser event listener