Split app.js into controler.js & service.js