added votes and comments to publish.js