Try Eval(A) as the second argument instead of just A.
A little off topic: JSL is a great tool, but it takes a lot of trial and error to write a script. In this example A and Eval(A) alone yields exactly the same result in the log window. But internally they obviously represent different things for the JSL interpreter.
The rules for when arguments can be represented by variables, expressions, quoted strings etc. is confusing, as is the rules for when eval(), parse(), nameexpr() et al must be used. In some situations several different alternatives work equally well, in other JSL is very picky. There is probably a sound logic behind everything from developers point of view, but as a user I wish JSL was more intuitive in these respects. An improved debugging tool could also help in that area.