Updated app.js to fix issue with routes