Update json-rpc.js

Content-Type added to XHR attributes