[CLIENT] refactorered app.js into controllers