Change matchrules and update getMatchedCSSRules

This works fine in Firefox but lacks support in IE
due to weird error `rules.length` is undefined (l.289)