Updating Javascript Variable from C# Script

Hey,

Im Currently using the Smartfox API for my Multiplayer Game. Now i have a variable in my javascript that i want to change/update from a C# script which is what the Smartfox API is written in.

If Anyone has experience with smartfox api and Unity could probly help me quite eassily here.

i want to update:

static var text : String; (Variable in Javascript)

from a c# script (ChatController.cs)

Is this possible?

i tried the following in the C# script but kept giving me a parsing error. Nametag being the name of the javascript

Nametag.text = “Test Text”;

Anyone?