fix portal_javascript