AngularJS macronutrient's calculator