Tweaking ape.js to try to fix transaction callback error.

Fixes "Session transaction failed on Fireabse!"
Merge pull request #1 from dergachev/update-transaction-syntax

Tweaking ape.js to try to fix transaction callback error.