How to call a simple Javascript function

You give us just words. How about an example with blocks or an example aia project of your problem?

Does this help?