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: 
a good solution for this is to work with classList and contains.

i did it like this:

```
... for ( var i = 0; i < container.length; i++ ) {
        if ( container[i].classList.contains('half_width') ) { ...

```

So you need your element and check the list of the classes. If one of the classes is the same as the one you search for it will return true if not it will return false!
Well all of the above answers are pretty good but here is a small simple function I whipped up. It works pretty well. 

```
function hasClass(el, cn){
    var classes = el.classList;
    for(var j = 0; j < classes.length; j++){
        if(classes[j] == cn){
            return true;
        }
    }
}

```