Update resolve.js