Refactor AngularJS: index.html