moved transactionsController to transactions.js