Update Transaction.js

Global leak fix.
j is not actually declared, i is, see line 539 above