merge resourceCollection.js into resourceManager.js