Macronutrient Calculator Using Rails and AngularJS