Rewrite of addListener to use window.resize rather than creating 'setInterval' for each media query using addListener.