"Execute Javascript" blueprint node

I have been able to use the “Execute Javascript” node in UE4 Blueprint to do write “Hello World” when I pass the complete instruction via the “Script Text” as “document.write(“hello world”);”. However, I don’t see a way to pass this node a function call which function exists inside a script in the HTML itself. Is that even possible?

I’m including the direct command that works, and the call for the function that doesn’t.