How do I get global variables with javascript [SOLVED]

Hi I have a problem. I created a game that communicates with a server that provides them with data. I make calls with a javascript event like this"","/userinfoes/sp/"+20+"/"+idd._str,tokenid._str,"GET","application/json",responseVar,states)
In the response variable Var I get a json already with the parse like this
score : yyyy
first : yyyy

my problem that I have to save values ​​in global variables but the like this code does not take instance of the global variable
var userscore = runtimeScene.getVariables().get("score --------> my global var");

myvar userscore is empty end if i modified theme the value of my global var dont change

plese i need help

I have found the solution

var yyyy= runtimeScene.getGame().getVariables().get("globaVar")