cleaned up transaction
cleaned up transaction.js