Source-to-source JS transformer for logging allocations