JS transformations can actually log, and you’ll need that for any non-trivial work. The answer is here, if a little buried