moved the route from index to app.js
moved the factories methods from app.js to factories dir