Class instead of id for product categories widget

Also rewrote plain old JS to jQuery