javascript client write and read test passes