added anon auth to js sdk