wrested with media queries, settled for js