Replace path module to node.js