resolve conflict

- Merge ajax_func.php
- Clean up script-challenges.js
- Clean up page-challenge-details.php