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