restful nodejs implementaion