fix portal js