magento2 – Output finalPrice in swatches directly

I want to output the finalPrice in the swatches directly, so that customers can see what the options mean for the price. I am successful in outputting it, but somehow it doesn’t index all the products. What I am having now is the following:

define((
    'jquery',
    'underscore',
    'priceUtils',
    'domReady!'
), function($, _, priceUtils) {

    function addPricesToOptions() {
        if (!$('(data-role=swatch-options)').first().data('mageSwatchRenderer')) {
            return setTimeout(addPricesToOptions, 500);
        }

        var config = $('(data-role=swatch-options)').first()
                .data('mageSwatchRenderer').options.jsonConfig;

        $('.swatch-attribute').each(function () {
            var attributeId = $(this).attr('data-attribute-id');
            $('.swatch-option', this).each(function () {
                var optiondId = $(this).attr('data-option-id');
                var index = _.findKey(config.index, function(value) {
                    return value(attributeId) == optiondId;
                });
                this.innerHTML += ' <span class="price">' +
                    priceUtils.formatPrice(
                        config.optionPrices(index).finalPrice.amount,
                        config.priceFormat
                    ) +
                    '</span>';
            });
        });
    }

    if ($('(data-role=swatch-options)').length) {
        addPricesToOptions();
    }
});

In my case it loads all attributeId’s (93 + 150) and all optiondId’s of the attributeId’s (93: 4,7 150: 24,25,26), but it doesn’t loop through all the combination of optionId’s. To get an productId I need to combine the optionId’s of the attributeId’s, so for example option 4 of attribute 93 and option 24 of attribute 150 will give me productId 3. With the above script it will only loop through optionId 4 (4+24=3, 4+25=4, 4+26=5), but it should also repeat for optionId 7 (7+24=6, 7+25=7, 7+26=8). How can I loop through all combinations of the optionId’s?