Remove unused files and refactor the whole AngularJS structure