moved routes.js to /client/lib