main.js: remember to return next().