Moved entity resources to entity.js