clone and append add in transaction.js