resource.js added