Fix bug w/o transactions, create transactions.js