var RecipePreview = function(data){
  this.title = data.Title;
  this.stars = data.StarRating;
  this.imageUrl = data.ImageURL
}

var Recipe = function(data){
  this.title = data.Title;
  this.ingredients = [];
  this.instructions = data.Instructions;
  this.prepTime = data.TotalMinutes;
  this.yieldNumber = data.YieldNumber;
  this.yieldUnit = data.YieldUnit;
  this.stars = data.StarRating;
  this.instructions = data.Instructions;
  this.imageUrl = data.ImageURL
}



@@ -123,16 +123,135 @@
 eURL%0A%7D%0A%0A
+var Ingredient = function(data)%7B%0A  this.name = data.Name;%0A  this.quantity = data.Quantity;%0A  this.unit = data.Unit;%0A%7D%0A%0A
 var Reci
@@ -583,9 +583,447 @@
 eURL%0A%7D%0A%0A
+function BigOvenGetRecipeJson(recipeId) %7B%0A  var apiKey = APIKEY;%0A  var url = %22https://api.bigoven.com/recipe/%22 + recipeId + %22?api_key=%22+apiKey;%0A%0A  $.ajax(%7B%0A    type: %22GET%22,%0A    dataType: 'json',%0A    cache: false,%0A    url: url%0A  %7D).then(function(data) %7B%0A    var currentRecipe = new Recipe(data);%0A    for(i = 0; i %3C data.Ingredients.length; i ++)%7B%0A      currentRecipe.ingredients.push(new Ingredient(data.Ingredients%5Bi%5D));%0A    %7D;%0A  %7D);%0A%7D;%0A%0A
 %0A

Create Ingredient constructor function