Refactor js code. Create app, controllers and services files to locate
MVC code.