PortalKit: update index.js to fit the animation