Update resource.js