factory working in personCtr.js