Moving ng-init behaviour from index to app.js