Explanation about portal-javascript