begin javascript client login