Added media queries for javascript based elements.