Update application-portal.js