better handling of popular container's classes
Merge pull request #6674 from guardian/badges-js-fix

Better handling of popular container's classes