finished js media queries and associated handlers