Calculator in AngularJS