Javascript helper to enable media-query styling approach for elements unaware of their dom environment.