Updated old JS to jQuery product categories widget

Also replaced id with class