Added support for JS media queries if browser is not capable