Updated Node.js publisher