Completed the functionality of updateMealStatus in main.js