If you're using media queries you should feature test for that instead of testing the user agent, but I don't see matchMedia being used anywhere. What's the actual limitation here?