Fixed bug in templates/routes/index.js