Update portal.js to 1.0