Reorganize ng-app directory structure logic