Need a page refresh everytime a variant changes to get the correct code to load

Put it in custom.js under assets.