Fixed errors in templates/routes/index.js