A tent client protocol for javascript on server's side