How to write more maintainable code with the angular.js controller as syntax | Hacker News Reader