I'm getting the following error when testing your changes:
```
TypeError: headCell.cssClass is not a function
[Break On This Error] 	
headCell.cssClass(resources[i].className);
```