use src/p2.js as main entry for Node.js