Fixing type in routes.js