Create ingredients.js to separate js code for better readibility.