updating the javascript media queries