Update transactions.js