PS appears not to support Lisp-1-style function application in the presence of variable renaming:
(ps (let ((a 10)) (let ((a (lambda () 17))) (a))))
=>
"(function () { var a = 10; var a1 = function () { return 17; }; return a(); })();"
If I use FUNCALL, or even FLET instead of LET, the correct code is generated. There's obviously some Lisp-2 action going on in PS, but unless I'm mistaken it seems like both forms can be supported.
Scott