Moved routes to routes.js