A javascript library that performs the oauth javascript flow, designed to work with the Real Geeks oauth2 provider