do not merge - publish.js review

Not every browser still has `console.error` method (some, only `console.log`). Though probably none of them support canvas, so... let it be so).