Updated to fix small bug (elements were sometimes not recognizing the second css exclusion selector. updated to use querySelectorAll for optimization.