Calorie calculator in Angular.js