Updated savepublishing.js
Removed ad-hoc logging statements.