Hi, new to javascript. I tried to pass two arguments into javascript,

<action application="javascript" data="test.js $1 $2"/>


In test.js, I tried to use argv[1]  to retrieve $1 and argv[2] to retrieve $2, however, the javascript test.js complained about argv[] as undefined variables. How to retrieve the passing arguments in a javascript same as the case above. Thanks,