Fixed javascript client.