I don't like how you redeclare & reuse the `rules` variable here.
How about this:
```js
var rules = [];
ScanJS.rules.forEach(function(rule) {
  if (rule.name == '.innerHTML') {
    rules.append(rule);
    break;
  }
});
```
The `break` prevents going through the whole array.