Rerunning IIFE function from external script added with useHead inside a component - Nuxt