entity.js rename and using ActionFactory

change entiti.js to schema.js and using actionFactroy