I have just completed the conversion of a java simulation to javascript. However, I cannot find a way to read and set values of variables and elements from the html page. In the old java flavour we used
NameOfApplet._setVariables('variable=x')
and
NameOfApplet._getVariable('variable')
With ejss I cannot do this. I found the pdf with the instruction for using e.g.