Update client.js

Add POST and PUT methods to client.js