PortalKit: add comments to index.js