Bulding a rest service with node.js