conditional to only do js if matchMedia is supported