cookbook assignment

Would appreciate any suggestions on refactoring or ways of simplifying my code. This assignment was pretty hard for me and I think my messy code reflects that a bit. I also noticed a really weird bug yesterday that treats the recipe_id and ingredient_id as string values rather than integers. I have no idea why it is doing this!
`<table>` elements in HTML should only be used to show tabular data (think excel). It's common to use it to help style HTML but, it's a bad practice. It's a lot more work to use `<div>` elements, but it's the right thing to do.