Update base2pn.js

Minimal changes.