Question: In the Maven Standard Directory Layout where do I put Rules Engine files? Specifically, I'm using JBoss Rules (Drools), if that matters.

Answer: 
```js
// 1. Use if for see that classes:

if (document.querySelector(".section-name").classList.contains("section-filter")) {
  alert("Grid section");
  // code...
}
```

```html
<!--2. Add a class in the .html:-->

<div class="section-name section-filter">...</div>
```
### Element.matches()

Instead of `$(element).hasClass('example')` in jQuery, you can use `element.matches('.example')` in plain JavaScript:

```
if (element.matches('.example')) {
  // Element has example class ...
}

```

[View Browser Compatibility](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Browser_compatibility)