imported pypubjs from pythonjs repo, and adapted to work with `python-js` node package.