index.js selects orders and their products