Use the CSS @media to fire JS functions