Building an HTML5 responsive menu with media queries and javascript