Adjust media queries to accommodate height and width
js code cleanup