Extracted node.js resources to separate file