allow FooResource.js as well as Foo.js