I had accidentally put quotes around food in the console log so it was showing as the word food when it prints. Took out the quotes and made sure it worked.
Added an alert so that the user doesn't have to check the console for the results of the problem.