just return Regex.test() to make it shortly:
```js
var files = utils.ls(this.webapp.buildDirectoryFile, true)
.filter(function(file) {
  // only optimize included files from html file.
  return RE_HTML.test(file.leafName);
});
```