Create transaction.js