Updated ape.js to use the new signature of transaction callback.

Fixes 'Session transaction failed on Fireabse!' error.