Fix linter errors in resourceloader.js