Using global variable in the html page to set token and identifier