update client js for send query