fix server.js to use rest.js