node.js restify service sample
create first promise in angular