Moved variant-updated listener to doc head