added matchMedia for test of media query support, tweaked touch support detection