Javascript code on App

So I want to run javascript code in my app.I have used : Evaluate JS code block and When JS evaluated . My question is how can I display the data on my app.

Here is the Javascript code I am using :

I Would greatly appreciate your help ,since I was not able to find a proper explanation on the web.

You are showing an image. Not javascript code. Show what you have done.


Sorry I now realised this . So I took some javascript code from this website : HTML5 Broadband Speedtest |
and wanted to place it on my app .

Site provides papi for speed test not js code

To evaluate javascript in webviewer use “Evaluate JS” block from webviever component

Evaluate js works with simple js not defining funtion and after calling that