Updated old JS to jQuery product categories widget and replaced id with class

classes are more general than ids