JavaScript implementation of ASP.NET FormsAuthentication and FormsAuthenticationTicket