Updated route.js