Added IE8 support

added add and remove eventlistener for IE8 and a no-op for non-supportive browsers so it does not crash at any point