Avoid initializing the same JS variable multiple times.
Example input of
(ps:ps (loop ... collect ... collect ...))
resulted in
(function () {
var collect41 = [];
var collect41 = [];
...
Example input of
(ps:ps (loop ... collect ... collect ...))
resulted in
(function () {
var collect41 = [];
var collect41 = [];
...