Modified JS code for auth0-angular