fix spelling / use window.matchMedia