Add auto extension setting to node.js