update res.js, correct links