Moved Food Diary specific code into food_diary.js.