Update to routes/main.js