Check if browser supports MediaQueryList/matchMedia

See discussion on #270.

Not all browsers support window.matchMedia or the MediaQueryList object's addListener method, so checking for this is a good idea either way.