realize global variables from outside. Realize properties of javaobjects written as JSON. Use this in a function itself works now.