Get the server statistics through JavaScript