Make product variants thumbnails selection more specific in JS