Reverting changes to sso js

[With avillaplana] Reverting changes to SSO out js