Responsive websites (media queries), Javascript basics