Fixed bug with addEventListener for IE8-