Changed Rest API to node.js