Maintain your media-queries where they belong; in your SASS/SCSS and make them available with the same name space in your JS without polluting your HTML.