Seprated factory service from app.js