fixed typo in server.js for publish