Adds looser wildcard search for class names, since 'starts with' (^=) selector doesn not work with multiple classnames.