Update transaction.js