Check for addEventListener

IE8 understands querySelectorAll but not addEventListener.

This block of javascript is needed for browsers the understand media
queries. As IE8 doesn't support media queries it doesn't need to run
this code so check for addEventListner also.

This fixes a JavaScript error users are currently seeing in IE8.