rest sso: remove unused js fn