Javascript authentication delegates