Added recordBonus function to psiturk.js