Rename type.js to route.js.