use JavaScriptService to get the  Vars