Update client.js

for support other request type then plaintext