change /foo to / on routes.js