OAuth2 Javascript Client