detect css-defined media-queries with javascript