move routes.js to common dir