Refactored + comments on controllers.js and index.html.