fixed syntax error for transactions.js