Update browser samples to use CognitoIdentityCredentials