moved browsercheck into portal.js