Update pub.js

sometimes it would still write and gibe an ERROR