update ajax in classpage.js and homework.js