Update resistance.js