add media queries for browsers that do not support devicePixelRatio

This check enables support for browsers that do not yet support devicePixelRatio but do support media queries in javascript (for example, Firefox).