We can add a function in this file to do this, since this pattern is repeated a lot, something like:

```js
function ruleMatch (mod, url) {
  return mod.include.matchesAny(url) && !mod.exclude.matchesAny(url);
}
```
and in this case, call it with `if (ruleMatch(pagemod, document.URL))`, which will clean up a few of these conditionals throughout