Fix #1104: Separate IRTrees and JSTrees.

Duplicate code with desugar transformer of `Closure`.