redirect to same predictin if wager fails validation
create javascript boilerplate