I'm trying to add a class to a list item, based on the text content of the item - it's a workaround to highlight items in a dynamically generated menu, but the class gets applied to all the list items. Is it going wrong because I'm comparing two different kinds of variable?I'm trying to add a class to a list item, based