fix publish.js with new styling model