[Vue.js] (Nuxt.js/Vue.js) - Script only works once, stops working after changing route/refreshing the page