Update search challenges api and fix some jslint error.
Merge pull request #379 from Ghost141/dev

Update search challenges api and fix some jslint error.