document.addEventListener('DOMContentLoaded', function() {$('input[name="variationid"]').val('47065'); if ($('.p-container .rrp>del.strike>span').length > 0){ var oldUVP=309.9; var currentPrice = 494; function calculatePercent() { var percent = (oldUVP-currentPrice)/oldUVP*100; var percentRound = Math.round(percent); if(percentRound>2){ $(".img-container .bubble").html("-"+percentRound+"%");} else {$(".img-container .bubble").hide(); };}; calculatePercent();};var averageCount=$('.feedback-average-count').text();$('.sectionHeader .reviewCountTarget').html(averageCount);});