remove dependence on CSS3 :not selector

This change is made necessary because not every browser that implements querySelectorAll implements all of CSS selectors.  This is very similar to https://github.com/zurb/foundation/pull/4033 just for a different selector.