Update Transaction.js

Global leak fix