added postwager to wager.js and app.js