Memberstack fetched data // Trigger javascript function

Hey guys,

I’m using Webflow !

I have a js function that I want to trigger when I receive the user profil information on the page. What I’ve done so far :
Use an input field to populate user data (data-ms-member=“field-id”) and do a “.onchange”.
But it doesn’t works.
What’s the best way to do that please ?

The code that I used :