wrapped addEventListener in if for IE