do not merge - publish.js review

also, indent is 4 spaces in this file :)