Added window.mediaMatch detection support