this won't work on IE8. you have to write this as `indexOf(pluralCategories, attributeName) !== -1`