Revert "updated portal.js"

This reverts commit 5da7f56b0e1368ae9e19acc4bd2b3d9c85cb6852.