divide contest.js into contest.js and serv.js