Update old challenges api

1. Fix bug in old challenges api

2. Remove useless code in helper.js
Merge pull request #261 from Ghost141/challenges_api_update

Update old challenges api