[main.js] Add "food" function