Add support for IE8

IE8 doesn't support `window.addEventListener`, so we use the functional
equivalent instead.
Merge pull request #1 from MassRelevance/ie8-support

Add support for IE8