multiple servers and client javascript