Adding resource.js