Refactor client app to AngularJS correctness structure.