add routes.js to lib/