Building a calculator in an attempt to learn angular.js