more work on the portal and js integration