document.addEventListener('DOMContentLoaded', function(event) { var myShopID = 13193; var myBadgetType = 3; var mySrc = ('https:' === document.location.protocol ? 'https' : 'http'); createVBadge(myShopID, myBadgetType, mySrc); });