My attempt to learn angular.js