Added a "match" function, which applies certain attributes to elements when a given url matches the current one.