How to connect output of a Javascript block to a page variable?

Hi guys!

I try to connect the output of a Fetch call to my page variable, but I just cannot seem to do it.
Could you please check out the code underneath and help me out?