[TASK] Add balance_change array to transaction response, computed from metadata

Functions definitions aren't supposed to have semicolons in javascript. JSHint actually warns you if you put them in.