Created ComponentFactory.js